<?php echo $this->fetch('header.html'); ?>
<div> 
<?php echo $this->fetch('ymdian_order_comment/nav.html'); ?>
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>id</td>
   <td>订单</td>
   <td>店铺</td>
 
   <td>评分</td>
    <td>置顶</td>
   <td>时间</td>
  
   <td>内容</td>
   <td>回复</td>
<td>操作</td>
  </tr>
 <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<tr>
   <td><?php echo $this->_var['c']['id']; ?></td>
   <td><?php echo $this->_var['c']['order_id']; ?></td>
   <td><?php echo $this->_var['c']['shop_name']; ?></td>
    <td><?php echo $this->_var['c']['grade']; ?></td>
    <td><?php if ($this->_var['c']['orderindex'] == 0): ?>
           <img src="/static/images/no.gif"  class="ajax_yes" url="<?php echo $this->_var['appadmin']; ?>?m=ymdian_order_comment&a=orderindex&id=<?php echo $this->_var['c']['id']; ?>&t=1" rurl="<?php echo $this->_var['appadmin']; ?>?m=ymdian_order_comment&a=orderindex&id=<?php echo $this->_var['c']['id']; ?>&t=0" /> 
          <?php else: ?>
           <img src="/static/images/yes.gif" class="ajax_no"  rurl="<?php echo $this->_var['appadmin']; ?>?m=ymdian_order_comment&a=orderindex&id=<?php echo $this->_var['c']['id']; ?>&t=1" url="<?php echo $this->_var['appadmin']; ?>?m=ymdian_order_comment&a=orderindex&id=<?php echo $this->_var['c']['id']; ?>&t=0" /> 
          <?php endif; ?></td>
  <td><?php echo date("Y-m-d",$this->_var['c']['dateline']); ?></td>
  
 
   <td><?php echo $this->_var['c']['content']; ?></td>
   <td><?php echo $this->_var['c']['reply']; ?></td>
  
<td>  <a href="<?php echo $this->_var['admin']; ?>?m=ymdian_order_comment&a=show&id=<?php echo $this->_var['c']['id']; ?>">查看</a> <a href="javascript:;" class="delete" url="<?php echo $this->_var['admin']; ?>.php?m=ymdian_order_comment&a=delete&id=<?php echo $this->_var['c']['id']; ?>">删除</a></td>
  </tr>
   <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
 </table>
<div><?php echo $this->_var['pagelist']; ?></div>
</div> 
<?php echo $this->fetch('footer.html'); ?>